<%@ page import="com.stlm2.dems.entity.CardsType" %>
<%@ page import="com.stlm2.dems.entity.CardsCategory" %><%--
  Created by IntelliJ IDEA.
  User: apple
  Date: 2017/7/17
  Time: 14:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<html>
<head>
    <title>Title</title>
</head>
<body>
      我是views下面的jsp页面

<br>

      <select class="form-control" name="user_state">
          <option value="-1">全部</option>
      <%--   <c:forEach items="<%=CardsType.values() %>" var="type">
              <option value="${type.getIntValue() }">${type.toString() }</option>
          </c:forEach>--%>
          <%
              for (CardsType type : CardsType.values()) {
          %>
          <option value="<%=type.getIntValue()%>"><%=type.toString()%></option>
          <%
              }
          %>

          <%
              for (CardsCategory type:CardsCategory.values()){
          %>
          <option value="<%=type.getIntValue()%>"><%=type.toString()%></option>
          <%
              }
          %>
      </select>
</body>
</html>
